<%--
  Created by IntelliJ IDEA.
  User: Jiao
  Date: 2021/4/22
  Time: 13:31itia
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/hccg/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/hccg/assets/css/font-awesome.min.css" />
    <!--[if IE 7]>
    <link rel="stylesheet" href="/hccg/assets/css/font-awesome-ie7.min.css"/>
    <![endif]-->
    <link rel="stylesheet" href="/hccg/assets/css/ace.min.css" />
    <link  rel="stylesheet" href="/hccg/css/style.css"/>
    <title>已到期询价项目</title>
</head>

<body>
<div class="page-content">
        <div class="row">
            <div class="col-xs-12">
                <h3 class="header smaller lighter blue">已到期询价项目</h3>
                <form action="/hccg/tbXm/query" method="post">
                    <div class="search_style">
                        <div class="title_names">搜索查询</div>
                        <ul class="search_content clearfix">
                            <li><label class="lf">项目名称</label><input name="XmName" type="text"  class="text_add"/></li>
                            <li><label class="lf">项目状态</label><select name="XmStatus" size="1" style="width:200px; margin-left:10px" >
                                <option value="">--状态--</option>
                                <option value="1">审核中</option>
                                <option value="2">审核成功</option>
                            </select></li>
                            <li><label class="lf">是否紧急</label><select name="XmImport" size="1" style="width:200px; margin-left:10px" >
                                <option value="">--选择--</option>
                                <option value="1">普通项目</option>
                                <option value="2">紧急项目</option>
                            </select></li>
                            <li><label class="lf">开始时间</label><input type="date" name="startDate" class="inline"  style=" margin-left:10px;"></li>
                            <li><label class="lf">结束时间</label><input type="date" name="endDate" class="inline" style=" margin-left:10px;"></li>
                            <li style="width:90px;"><button type="submit" class="btn_search">查询</button></li>
                        </ul>
                    </div>
                </form>
                <!--内容列表样式-->
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover" id="">
                        <thead>
                            <tr>
                                <th rowspan="2">项目名称</th>
                                <th rowspan="2">产品名称</th>
                                <th rowspan="2">项目状态</th>
                                <th colspan="3">合计报价</th>
                                <th rowspan="2">创建日期</th>
                                <th rowspan="2">操作</th>
                            </tr>
                            <tr>
                                <th>产品单价</th>
                                <th>产品数量</th>
                                <th>产品总价格</th>
                            </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${list}" var="l">
                            <tr>
                                <%--<a href="javascript:void(0)" class="Numberings"></a>--%>
                                <td>${l.xmName}</td>
                                <td>${l.xmProduceName}</td>
                                <td>${l.xmStatus}</td>
                                <td>${l.xmPrice}</td>
                                <td>${l.xmCount}</td>
                                <td>${l.xmTotalPrice}</td>
                                <td><fmt:formatDate value="${l.xmCreatDate}" pattern="yyyy-MM-dd"/></td>
                                <td>
                                    <a type="button" class="btn btn-info Order_form" href="/hccg/tbXm/delect?id=${l.id}" title="删除">删除</a>
                                    <a type="button" class="btn btn-warning cx_Inquiry"  href="/hccg/tbXm/select?id=${l.id}">修改</a>
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <div class="page_style">
                        <select name="" size="1">
                            <option value="1">10</option>
                            <option value="2">20</option>
                            <option value="3">30</option>
                        </select>
                        <a href="" class="icon-step-backward page_btn" ></a>
                        <a href="" class="icon-caret-left page_btn"></a>
                        第
                        <select name="" size="1">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                        </select>
                        共2页
                        <a href="" class=" icon-caret-right page_btn"></a>
                        <a href="" class="icon-step-forward page_btn"></a>
                    </div>
                </div>
            </div>
        </div>
</div>
<!--[if !IE]> -->
<script src="/hccg/assets/js/jquery.min.js"></script>
<!-- <![endif]-->

<!--[if !IE]> -->

<script type="text/javascript">
    window.jQuery || document.write("<script src='/hccg/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript">
    window.jQuery || document.write("<script src='/hccg/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script src="/hccg/assets/layer/layer.js" type="text/javascript"></script>
<script src="/hccg/assets/laydate/laydate.js" type="text/javascript"></script>
<script type="text/javascript">
    laydate({
        elem: '#start', //目标元素'
        event: 'focus' //响应事件。
    });
    //弹出一个iframe层
    $('.Numberings').on('click', function(){
        layer.open({
            type: 2,
            title: '项目订单详细',
            maxmin: true,
            shadeClose: true, //点击遮罩关闭层
            area : ['900px' , '400px'],
            content: '到期项目订单详细.html'
        });
    });
    //面包屑返回值
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.iframeAuto(index);
    $('.Order_form').on('click', function(){
        var cname = $(this).attr("title");
        parent.$('#parentIframe').html(cname);
        parent.$('#parentIframe').css("display","inline-block");
        //parent.$('.Current_page').html("<a href=''>" +  + "</a>");
        parent.layer.close(index);
    });
</script>

</body>
</html>

